package framework;

import com.sunny.model.User;

public class ThreadLocalUser {
	static ThreadLocal<User> user = new ThreadLocal<User>();

	public static void setUser(User userInfo) {
		user.set(userInfo);
	}

	public static User currentUser() {
		return user.get();
	}

	public static User newUser() {
		return new User();
	}
}
